from speech.ibm.speech_recognition import IBMSpeechRecognizer
from translate.youdao.translate_recognition import YouDaoTranslateRecognizer


if __name__ == '__main__':
    file_path = "E:/迅雷下载/videoplayback/音频1.wav"
    sr = IBMSpeechRecognizer()
    text = sr.wav_file_recognition(file_path)
    print(text)

    tr = YouDaoTranslateRecognizer()
    print(tr.translate(text))